#include<iostream>
#include<cmath>
#include<iomanip>
using namespace std;

class Point
{
    private:
        double x,y;
    public:
        //无参构造函数
        Point(){};
        //构造函数
        Point(double x_value,double y_value):x(x_value),y(y_value){ }
        double getX()
        {
            return x;
        }
        double getY()
        {
            return y;
        }
        double distanceToAnotherPoint(Point p);
};

double Point::distanceToAnotherPoint(Point p)
{
    return sqrt((x-p.getX())*(x-p.getX())+(y-p.getY())*(y-p.getY()));
}

int main()
{
    int time;
    cin>>time;
    while(time--)
    {
        double a,b,c,d;
        cin>>a>>b>>c>>d;
        Point a1(a,b),a2(c,d);
        printf("Distance of Point(%.2f,%.2f) to Point(%.2f,%.2f) is ",a1.getX(),a1.getY(),a2.getX(),a2.getY());
        //我真的觉得printf输出格式更好用...
        cout<<fixed<<setprecision(2)<<a1.distanceToAnotherPoint(a2)<<endl;
    }
}